package no.gnet.util;

import java.util.HashMap;

public class Constants {

	public final static int ACTION_YES = 1;
	public final static int ACTION_NO = 2;
	public final static int ACTION_DUNNO = 3;
		
	
	/*ADMIN SERVLET COMMANDS*/
	 public static final String CMD_CREATE_LOCATION="CL";
	 public static final String CMD_CREATE_TRAINING="CT";
	 public static final String CMD_DELETE_PLAYER="DELP";
	 public static final String CMD_MODIFY_TRAINING="MODT";
	 public static final String CMD_REPORT_GOAL="REPG";
	 public static final String CMD_REPORT_APPEARANCE="REPA";
	 public static final String CMD_DELETE_TRAINING="DELT";
	 public static final String CMD_MODIFY_APPEARANCE="MODA";
	 public static final String CMD_CREATE_PLAYER="CREP";
	 public static final String CMD_LOG_OFF="LOGOFF";
		
	 
	 /*SERVLET COMMANDS*/
	 public static final String CMD_GETPLAYERS="PLS";
	 public static final String CMD_GETTRAININGS="TRS";
	 public static final String CMD_SET_APPEARANCES_FOR_TRAINING="RAFT";
	 
	 public static final String CMD_GOALS_FORPLAYERS="GLS";
	 public static final String CMD_GETAPPEARANCES="APPS";
	 public static final String CMD_GETPLAYER="GPL";
	 public static final String CMD_GETBOOKINGS_FORTRAINING="BFTS";
	 
	 public static final String CMD_GETCURRENT_TRAINING="CTR";
	 public static final String CMD_BOOK_PLAYER="BPL";
	 public static final String CMD_STATISTICS="STATS";
	 public static final String CMD_NEWS="NEWS";
	 
	 
	 
	 /**/
//	 Other constants
	 /***/
	 public static final int PLAYER_ACTIVATED=1;
	 public static final int PLAYER_NOT_ACTIVATED=0;
	 
	 public static final String IMAGES_HOME = "images_home";
	 
	 public static HashMap COMMANDVIEW = new HashMap();
	 static{
		COMMANDVIEW.put(CMD_GETPLAYERS, "/all_players.jsp");
		COMMANDVIEW.put(CMD_GETBOOKINGS_FORTRAINING, "/current_training.jsp");

		COMMANDVIEW.put(CMD_BOOK_PLAYER, "/current_training.jsp");
		COMMANDVIEW.put(CMD_GETTRAININGS, "/all_trainings.jsp");
		COMMANDVIEW.put(CMD_SET_APPEARANCES_FOR_TRAINING, "/register_appearances.jsp");
		COMMANDVIEW.put(CMD_STATISTICS, "/statistics.jsp");
		COMMANDVIEW.put(CMD_NEWS, "/news.jsp");
		
		
		/*ADMIN*/
		COMMANDVIEW.put(CMD_CREATE_LOCATION, "/admin/locationcreated.jsp");
		COMMANDVIEW.put(CMD_CREATE_TRAINING, "/admin/trainingcreated.jsp");
	 }
}
